<template>
  <svg
    aria-hidden="true"
    :style="{
      width: props.size + 'em',
      height: props.size + 'em',
    }"
  >
    <use :href="`#icon-${props.name}`" :fill="props.color" />
  </svg>
</template>
<script>
export default {
  name: "SvgIcon",
};
</script>
<script setup>
const props = defineProps({
  name: String,
  size: {
    type: [String, Number],
    default: 1,
  },
  color: {
    type: String,
    default: "#333",
  },
});
</script>

<style lang="scss" scoped></style>
